
<%@ page import="edu.hawaii.kukui.ActivityTextAttempt" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'activityTextAttempt.label', default: 'ActivityTextAttempt')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${activityTextAttemptInstance}">
            <div class="errors">
                <g:renderErrors bean="${activityTextAttemptInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="verificationText"><g:message code="activityTextAttempt.verificationText.label" default="Verification Text" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'verificationText', 'errors')}">
                                    <g:textArea name="verificationText" cols="40" rows="5" value="${activityTextAttemptInstance?.verificationText}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="noteToAdmin"><g:message code="activityTextAttempt.noteToAdmin.label" default="Note To Admin" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'noteToAdmin', 'errors')}">
                                    <g:textArea name="noteToAdmin" cols="40" rows="5" value="${activityTextAttemptInstance?.noteToAdmin}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="validateStatus"><g:message code="activityTextAttempt.validateStatus.label" default="Validate Status" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'validateStatus', 'errors')}">
                                    <g:select name="validateStatus" from="${activityTextAttemptInstance.constraints.validateStatus.inList}" value="${activityTextAttemptInstance?.validateStatus}" valueMessagePrefix="activityTextAttempt.validateStatus" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="validateComment"><g:message code="activityTextAttempt.validateComment.label" default="Validate Comment" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'validateComment', 'errors')}">
                                    <g:textArea name="validateComment" cols="40" rows="5" value="${activityTextAttemptInstance?.validateComment}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="selectTimestamp"><g:message code="activityTextAttempt.selectTimestamp.label" default="Select Timestamp" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'selectTimestamp', 'errors')}">
                                    <g:datePicker name="selectTimestamp" precision="day" value="${activityTextAttemptInstance?.selectTimestamp}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="activityVerificationText"><g:message code="activityTextAttempt.activityVerificationText.label" default="Activity Verification Text" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'activityVerificationText', 'errors')}">
                                    <g:select name="activityVerificationText.id" from="${edu.hawaii.kukui.ActivityVerificationText.list()}" optionKey="id" value="${activityTextAttemptInstance?.activityVerificationText?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastUpdated"><g:message code="activityTextAttempt.lastUpdated.label" default="Last Updated" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'lastUpdated', 'errors')}">
                                    <g:datePicker name="lastUpdated" precision="day" value="${activityTextAttemptInstance?.lastUpdated}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="submitTimestamp"><g:message code="activityTextAttempt.submitTimestamp.label" default="Submit Timestamp" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'submitTimestamp', 'errors')}">
                                    <g:datePicker name="submitTimestamp" precision="day" value="${activityTextAttemptInstance?.submitTimestamp}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="kukuiUser"><g:message code="activityTextAttempt.kukuiUser.label" default="Kukui User" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'kukuiUser', 'errors')}">
                                    <g:select name="kukuiUser.id" from="${edu.hawaii.kukui.KukuiUser.list()}" optionKey="id" value="${activityTextAttemptInstance?.kukuiUser?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="dateCreated"><g:message code="activityTextAttempt.dateCreated.label" default="Date Created" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'dateCreated', 'errors')}">
                                    <g:datePicker name="dateCreated" precision="day" value="${activityTextAttemptInstance?.dateCreated}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="validateTimestamp"><g:message code="activityTextAttempt.validateTimestamp.label" default="Validate Timestamp" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'validateTimestamp', 'errors')}">
                                    <g:datePicker name="validateTimestamp" precision="day" value="${activityTextAttemptInstance?.validateTimestamp}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="activity"><g:message code="activityTextAttempt.activity.label" default="Activity" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: activityTextAttemptInstance, field: 'activity', 'errors')}">
                                    <g:select name="activity.id" from="${edu.hawaii.kukui.Activity.list()}" optionKey="id" value="${activityTextAttemptInstance?.activity?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
